﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.So;
using nERP.Model;
using nERP.Model.Bas;

namespace nERP.ViewModel.So.SaleVMs
{
    public partial class SaleTemplateVM : BaseTemplateVM
    {

        [Display(Name = "_Model._Sale._SaleCode")]
        public ExcelPropety SaleCode_Excel = ExcelPropety.CreateProperty<Sale>(x => x.SaleCode);
        [Display(Name = "_Model._Sale._Customer")]
        public ExcelPropety Customer_Excel = ExcelPropety.CreateProperty<Sale>(x => x.CustomerId);
        [Display(Name = "_Model._Sale._InvoicesDate")]
        public ExcelPropety InvoicesDate_Excel = ExcelPropety.CreateProperty<Sale>(x => x.InvoicesDate, true);
        [Display(Name = "_Model._Sale._MakeUser")]
        public ExcelPropety MakeUser_Excel = ExcelPropety.CreateProperty<Sale>(x => x.MakeUserId);
        [Display(Name = "_Model._Sale._DeliveryDate")]
        public ExcelPropety DeliveryDate_Excel = ExcelPropety.CreateProperty<Sale>(x => x.DeliveryDate, true);
        [Display(Name = "_Model._Sale._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<Sale>(x => x.Remark);
        [Display(Name = "_Model._Sale._TotalPrice")]
        public ExcelPropety TotalPrice_Excel = ExcelPropety.CreateProperty<Sale>(x => x.TotalPrice);
        [Display(Name = "_Model._Sale._TotalPrice1")]
        public ExcelPropety TotalPrice1_Excel = ExcelPropety.CreateProperty<Sale>(x => x.TotalPrice1);
        [Display(Name = "_Model._Sale._TotalPrice2")]
        public ExcelPropety TotalPrice2_Excel = ExcelPropety.CreateProperty<Sale>(x => x.TotalPrice2);
        [Display(Name = "_Model._Sale._Status")]
        public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<Sale>(x => x.Status);
        [Display(Name = "_Model._Sale._SettlementAccount")]
        public ExcelPropety SettlementAccount_Excel = ExcelPropety.CreateProperty<Sale>(x => x.SettlementAccountId);
        //[Display(Name = "_Model._Sale._CreateTime")]
        //public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<Sale>(x => x.CreateTime, true);
        //[Display(Name = "_Model._Sale._UpdateTime")]
        //public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<Sale>(x => x.UpdateTime, true);
        //[Display(Name = "_Model._Sale._CreateBy")]
        //public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<Sale>(x => x.CreateBy);
        //[Display(Name = "_Model._Sale._UpdateBy")]
        //public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<Sale>(x => x.UpdateBy);
        //[Display(Name = "_Model._Sale._IsValid")]
        //public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<Sale>(x => x.IsValid);
        //[Display(Name = "_Model._Sale._TenantCode")]
        //public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<Sale>(x => x.TenantCode);

        protected override void InitVM()
        {


        }

    }

    public class SaleImportVM : BaseImportVM<SaleTemplateVM, Sale>
    {
        //import

    }

}